﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp.Demos.SimplePipeline
{
    public class HttpRequestByCustom
    {
        private readonly IHttpRequestFeatureByCustom _feature;


        public HttpRequestByCustom(IFeatureCollectionByCustom features)
        {
            _feature = features.Get<IHttpRequestFeatureByCustom>();
        }

        public Uri Url => _feature.Url;

        public NameValueCollection Headers => _feature.Headers;

        public Stream Body => _feature.Body;
    }
}
